<template>
<div>
    <div>
        <h1>我是MyActions,我将会通过Actions将值传给我的兄弟组件MyActionsTwo</h1>
    </div>
    <div>
        <input v-model="actionsValue"/><button @click="send">Actions</button>
    </div>
</div>
</template>

<script>
export default {
    name: 'MyActions',
    data(){
        return{
            actionsValue: ''
        }
    },
    methods:{
        send(){
        this.$store.dispatch('useActions', this.actionsValue);  
        }
    }
}
</script>

<style>

</style>